/**
 * ===========================================
 * Project: cyou-framework
 * ===========================================
 * Package: com.cyou.framework.baseutil
 * 
 * Copyright (c) 2012, CYOU All Rights Reserved.
 * ===========================================
 */
package com.cyou.framework.util;

import java.util.Date;

/**
 * <p>DateUtility</p>
 *
 * @since 1.0
 * @version 1.0, 2012-11-29
 * @author zhangxingkai
 */
public class DateUtility {

	public static final Date now() {
		return new Date();
	}
	public static Date beforeDate(long time){
		return new Date((new Date().getTime()-time));
	}
	
}
